<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="${CONTEXT}/view/css/import.css"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
<title>更新</title>
</head>

<body id="layres">
<view:seedmsg>
<div class="layreshdr">
	<div>
	<ul>
		<li><a href="menu.do">メニュー</a></li>
		<li><a href="logoff.do">ログオフ</a></li>
	</ul>
	</div>
	<div>
		更新入力
	</div>

	<div id="topMessage">${MESSAGE}</div>
</div>
<div class="layresmaj">
<!--
	<form id="form" method="post" enctype="multipart/form-data" >
-->
	<form id="form" method="post">
	<input type="hidden" name="Version" value="${empty Version ? '1' : Version}"/>
	<div class="layrespri">
		<dl class="body">
			<dt><label for="fooId">FOO</label></dt>
			<dd><input type="text" name="FooId" id="fooId" maxlength="32" value="${FooId}" class="code"/></dd>
			<dt><label for="hooId">HOO</label></dt>
			<dd><input type="text" name="HooId" id="hooId" maxlength="48" value="${HooId}" class="code"/></dd>
			<dt><label for="torokuDateTime">登録日時</label></dt>
			<dd><input type="text" name="TorokuDateTime" id="torokuDateTime" maxlength="10" value="${view:datefmt(TorokuDateTime, 'yyyyMMdd')}" class="date"/></dd>
			<dt><label for="fooName" id="fooNameLabel">FOO_NAME</label></dt>
			<dd><input type="text" name="FooName" id="fooName" maxlength="50" value="${FooName}" class="text"/></dd>
			<dt><label for="fooAddress">FOO_ADDRESS</label></dt>
			<dd><input type="text" name="FooAddress" id="fooAddress" maxlength="50" value="${FooAddress}" class="text"/></dd>
			<dt><label for="fooPhone">FOO_PHONE</label></dt>
			<dd><input type="text" name="FooPhone" id="fooPhone" maxlength="15" value="${FooPhone}" class="phone"/></dd>
			<dt><label>ROO_CHECK</label></dt>
			<utl:check var="val" name="FooCheck" value="&amp;"/>
			<dd><input type="checkbox" name="FooCheck" value="${val}" /></dd>
			<dt><label>ROO_CHECK2</label></dt>
			<utl:check var="val" name="FooCheck2" value="2" default="2"/>
			<dd><input type="checkbox" name="FooCheck2" value="${val}" /></dd>
<!--
				<dt><label for="rooFile">ROO_FILE</label></dt>
				<dd><input type="file" name="RooFile" id="rooFile"/></dd>
-->
		</dl>
	</div>
	<div class="layressec">
	</div>
	<div class="layrester">
		<button type="button" class="menu">メニューへ</button>
<!--			<button type="button" class="update">更新</button> -->
		<button type="submit" name="AID" value="update" onclick="return VIEW.submit.set();">更新</button>
		<c:if test="${not empty Id}" >
		<button type="button" class="delete">削除</button>
		</c:if>
	</div>
	</form>
</div>
<%--
<utl:param var="prm"/>
<jsp:include page="/UPDATE2.do?${prm}" />
--%>

<div class="layresftr">
	<div class="layresftr1">
	</div>
	<div class="layresftr2">
	</div>
</div>

<script src="${CONTEXT}/view/js/jquery.js"></script>
<script src="${CONTEXT}/view/js/submit.js"></script>
<script src="${CONTEXT}/view/js/dom.js"></script>
<script src="${CONTEXT}/view/js/msgsts.js"></script>
<script>
//<![CDATA[
$(document).ready(function() {
	$('button.menu').click(function(){VIEW.submit.relocate('menu.do');});
	$('button.update').click(function(){VIEW.submit.post('form', 'update');});
	$('button.delete').click(function(){VIEW.submit.relocate('CONFIRMDEL.do?Id=${Id}');});
	VIEW.dom.setFocus('form');
//	$('#form').submit(function(ev){ev.preventDefault();});
//	if (location.hash !== "") {
//		$('#' + location.hash).focus();
//	}
});
//]]>
</script>
</view:seedmsg>
</body>
</html>
